<template>
 
    
    <div class="movie-box">
      <div class="movie-item">
        <em>1</em>
        <img :src="data.images.small" class="pic" />
        <div class="movie-content">
          <a href class="title font-limit">{{data.title}}</a>
          <div class="peoples font-limit">
            <p>
              <span>导演：{{data.directors[0].name}}</span>
              <span>主演：{{data.casts[0].name}}</span>
            </p>
            <p>
              <span class="time">{{data.year}}</span> /
              <span class="from">{{data.pubdates[0]}}</span> /
              <span class="type">{{data.genres[0]}}</span>
            </p>
          </div>
          <div class="evaluate">
            <span class="grade">{{data.rating.average}}</span>
            <span class="details">185752</span>
          </div>
          <div class="quote">这个是点评</div>
        </div>
      </div>
    </div>
 
</template>
<script>
export default {
  name: "movieItem",
  props: {
    data: {
      type: Object
    }
  }
};
</script>
<style  scoped>


.movie-box {
  border-top: 1px dashed #ccc;
  width: 675px;
}
.movie-item {
  height: 175px;
  width: 675px;
  box-sizing: border-box;
  border-bottom: 1px dashed #ccc;
  padding: 12px 0;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
em {
  font-style: normal;
  font-weight: normal;
  color: #bbb;
  padding: 0 10px;
  font-size: 13px;
}
.pic {
  width: 100px;
  height: 148px;
  position: relative;
  margin-right: 25px;
  background: pink;
}
.movie-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
.title {
  font-size: 14px;
}
.peoples {
  font-size: 13px;
  color: #666666;
}
.peoples > p {
  line-height: 20px;
}
.font-limit {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
}
.evaluate {
  font-size: 13px;
  color: #111111;
}
.grade {
  color: #e09015;
  font-size: 13px;
  margin-right: 5px;
}
.details {
  color: #666666;
  font-size: 13px;
}
.quote {
  font-size: 13px;
  color: #666666;
}
</style>